package com.airycode.distribution.distribution1.repository;

import com.airycode.distribution.distribution1.domain.MemberEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by zkr-fanxirui on 2017/8/14.
 */
public interface MemberRepository extends JpaRepository<MemberEntity,String>,JpaSpecificationExecutor<MemberEntity> {

    @Query(value = "select * from tb_member",nativeQuery = true)
    List<MemberEntity> selectAllMember();



}
